﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.DTO.System.SysModule
{
    public class SysModulePostDTO
    {
        public int Id { get; set; }

        [StringLength(20)]
        [Required(ErrorMessage ="{0}必填")]
        [Display(Name ="名称")]
        public string Name { get; set; }

        [Required(ErrorMessage = "{0}必填")]
        [Display(Name = "上级")]
        public int ParentId { get; set; }

        [StringLength(50)]
        [Required(ErrorMessage = "{0}必填")]
        [Display(Name = "请求路径")]
        public string Url { get; set; }

        [StringLength(50)]
        [Display(Name = "前端路径")]
        public string ClientPath { get; set; }

        [StringLength(20)]
        [Display(Name = "图标")]
        public string Iconic { get; set; }

        [Display(Name = "排序编号")]
        public int Sort { get; set; }

        [Display(Name = "是否叶子节点")]
        public bool IsLeaf { get; set; }
    }
}
